﻿// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace NuGet.Services.Metadata.Catalog
{
    public class PackageVulnerabilityItem
    {
        /// <param name="gitHubDatabaseKey">GitHub Database Key - part of unique id in json</param>
        /// <param name="advisoryUrl">URL containing advisory details</param>
        /// <param name="severity">Severity of vulnerability advisory 0-3, 0 is most critical</param>
        public PackageVulnerabilityItem(
            string gitHubDatabaseKey,
            string advisoryUrl,
            string severity)
        {
            GitHubDatabaseKey = gitHubDatabaseKey;
            AdvisoryUrl = advisoryUrl;
            Severity = severity;
        }

        public string GitHubDatabaseKey { get; }
        public string AdvisoryUrl { get; }
        public string Severity { get; }
    }
}
